extends "../aogusite-3/aogusite-3.gd"


var baseId = ""
var upText1 = "本我轰击回血系数+10%"
var upText2 = "本我轰击伤害系数+10%"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每{cd}秒对自身舰载机周围2格的敌人造成[本回合已受伤害量]的技能伤害，恢复自身30%血量", "铁血翅翼", "aogusite4", 10)

func _castCdSkill(id):
	._castCdSkill(id)
	if id=="aogusite4":
		aogusite4()

func aogusite4():
	for i in summedCha:
		if not i.isDeath:
			for j in i.getCellChas(i.cell, 2, 1):
				azurHurtChara(i, hurtNum1, sys.HurtType.WEAPON, sys.AtkType.SKILL, "铁血翅翼")
	healCha(self, att.maxHp*0.3)

func upgrade():
	.upgrade()
	if upgraded == 1:
		p32 = 0.25
	if upgraded == 2:
		p31 = 0.3